<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::Font类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_font.html">Font</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_sky_engine2d_1_1_font-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::Font类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ab306d7b5a12e603054c47eacc7ac18ed"><td class="memItemLeft" align="right" valign="top"><a id="ab306d7b5a12e603054c47eacc7ac18ed"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_WEIGHT</b> { <b>FONT_WEIGHT_LIGHT</b> = 300, 
<b>FONT_WEIGHT_NORMAL</b> = 400, 
<b>FONT_WEIGHT_MEDIUM</b> = 500, 
<b>FONT_WEIGHT_BOLD</b> = 700
 }</td></tr>
<tr class="separator:ab306d7b5a12e603054c47eacc7ac18ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a5e459810d4528f207a27237208e811"><td class="memItemLeft" align="right" valign="top"><a id="a5a5e459810d4528f207a27237208e811"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_STYLE</b> : int { <b>NORMAL</b> = DWRITE_FONT_STYLE_NORMAL, 
<b>OBLIQUE</b> = DWRITE_FONT_STYLE_OBLIQUE, 
<b>ITALIC</b> = DWRITE_FONT_STYLE_ITALIC
 }</td></tr>
<tr class="separator:a5a5e459810d4528f207a27237208e811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6577562fbee65112f47e5c1c93eec6d7"><td class="memItemLeft" align="right" valign="top"><a id="a6577562fbee65112f47e5c1c93eec6d7"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_STRETCH</b> : int { <br />
&#160;&#160;<b>ULTRA_CONDENSED</b> = DWRITE_FONT_STRETCH_ULTRA_CONDENSED, 
<b>EXTRA_CONDENSED</b> = DWRITE_FONT_STRETCH_EXTRA_CONDENSED, 
<b>CONDENSED</b> = DWRITE_FONT_STRETCH_CONDENSED, 
<b>SEMI_CONDENSED</b> = DWRITE_FONT_STRETCH_SEMI_CONDENSED, 
<br />
&#160;&#160;<b>NORMAL</b> = DWRITE_FONT_STRETCH_NORMAL, 
<b>MEDIUM</b> = DWRITE_FONT_STRETCH_MEDIUM, 
<b>SEMI_EXPANDED</b> = DWRITE_FONT_STRETCH_SEMI_EXPANDED, 
<b>EXPANDED</b> = DWRITE_FONT_STRETCH_EXPANDED, 
<br />
&#160;&#160;<b>EXTRA_EXPANDED</b> = DWRITE_FONT_STRETCH_EXTRA_EXPANDED, 
<b>ULTRA_EXPANDED</b> = DWRITE_FONT_STRETCH_ULTRA_EXPANDED
<br />
 }</td></tr>
<tr class="separator:a6577562fbee65112f47e5c1c93eec6d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:afc0cead5147ebd8150fddc023c6b76ee"><td class="memItemLeft" align="right" valign="top"><a id="afc0cead5147ebd8150fddc023c6b76ee"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Font</b> (const std::wstring &amp;family, int size=Font::defultFontSize, Font::FONT_WEIGHT weight=Font::FONT_WEIGHT_NORMAL, bool italic=false)</td></tr>
<tr class="separator:afc0cead5147ebd8150fddc023c6b76ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add6324bddb4e828c408ce228a8a9823c"><td class="memItemLeft" align="right" valign="top"><a id="add6324bddb4e828c408ce228a8a9823c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Font</b> (const <a class="el" href="class_sky_engine2d_1_1_font.html">Font</a> &amp;font)</td></tr>
<tr class="separator:add6324bddb4e828c408ce228a8a9823c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d8bdc1143148d0707ad672b51ded180"><td class="memItemLeft" align="right" valign="top"><a id="a9d8bdc1143148d0707ad672b51ded180"></a>
FONT_STYLE&#160;</td><td class="memItemRight" valign="bottom"><b>getFontStyle</b> () const</td></tr>
<tr class="separator:a9d8bdc1143148d0707ad672b51ded180"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21414e9a26874d25005f1a64e73f9566"><td class="memItemLeft" align="right" valign="top"><a id="a21414e9a26874d25005f1a64e73f9566"></a>
FONT_STRETCH&#160;</td><td class="memItemRight" valign="bottom"><b>getFontStretch</b> () const</td></tr>
<tr class="separator:a21414e9a26874d25005f1a64e73f9566"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b54e8a95e0972395ea2d095a369b055"><td class="memItemLeft" align="right" valign="top"><a id="a0b54e8a95e0972395ea2d095a369b055"></a>
const std::wstring &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getFontFamily</b> () const</td></tr>
<tr class="separator:a0b54e8a95e0972395ea2d095a369b055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90fa427e13c931b4efb7142f7cff416f"><td class="memItemLeft" align="right" valign="top"><a id="a90fa427e13c931b4efb7142f7cff416f"></a>
const std::wstring &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getLocaleName</b> () const</td></tr>
<tr class="separator:a90fa427e13c931b4efb7142f7cff416f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24de4cc7a89ed97e0195ad4c48dc6999"><td class="memItemLeft" align="right" valign="top"><a id="a24de4cc7a89ed97e0195ad4c48dc6999"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>getFontSize</b> () const</td></tr>
<tr class="separator:a24de4cc7a89ed97e0195ad4c48dc6999"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a114da21adcd0e3fb19c00fd18e3306be"><td class="memItemLeft" align="right" valign="top"><a id="a114da21adcd0e3fb19c00fd18e3306be"></a>
const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getFontPixelSize</b> () const</td></tr>
<tr class="separator:a114da21adcd0e3fb19c00fd18e3306be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05fb3f9bf0661a5464f56f67ad3bd32c"><td class="memItemLeft" align="right" valign="top"><a id="a05fb3f9bf0661a5464f56f67ad3bd32c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getFontWeight</b> () const</td></tr>
<tr class="separator:a05fb3f9bf0661a5464f56f67ad3bd32c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14ebe17716b7ecc16bceb5ca8b3c2369"><td class="memItemLeft" align="right" valign="top"><a id="a14ebe17716b7ecc16bceb5ca8b3c2369"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setWordWrapping</b> (bool wordWrapping=true)</td></tr>
<tr class="separator:a14ebe17716b7ecc16bceb5ca8b3c2369"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74a7ab171cd9ba996ee43615b22ea6af"><td class="memItemLeft" align="right" valign="top"><a id="a74a7ab171cd9ba996ee43615b22ea6af"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isWordWrapping</b> () const</td></tr>
<tr class="separator:a74a7ab171cd9ba996ee43615b22ea6af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40bb06c1746162eec8b5512d18707f4e"><td class="memItemLeft" align="right" valign="top"><a id="a40bb06c1746162eec8b5512d18707f4e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setAlignment</b> (int flag)</td></tr>
<tr class="separator:a40bb06c1746162eec8b5512d18707f4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06f65f1dad6ad780b50afb4f176cf693"><td class="memItemLeft" align="right" valign="top"><a id="a06f65f1dad6ad780b50afb4f176cf693"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_sky_engine2d_1_1_font.html">Font</a> &amp;font) const</td></tr>
<tr class="separator:a06f65f1dad6ad780b50afb4f176cf693"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a7543aec54e7fa7748656a4a359110199"><td class="memItemLeft" align="right" valign="top"><a id="a7543aec54e7fa7748656a4a359110199"></a>
static const std::wstring&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontFamily</b></td></tr>
<tr class="separator:a7543aec54e7fa7748656a4a359110199"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab23e932c1b8674547445c34a6f5e076e"><td class="memItemLeft" align="right" valign="top"><a id="ab23e932c1b8674547445c34a6f5e076e"></a>
static const std::wstring&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontLocalName</b></td></tr>
<tr class="separator:ab23e932c1b8674547445c34a6f5e076e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af532198de2b3b655335ec1d05f78e569"><td class="memItemLeft" align="right" valign="top"><a id="af532198de2b3b655335ec1d05f78e569"></a>
static const FONT_STYLE&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontStyle</b></td></tr>
<tr class="separator:af532198de2b3b655335ec1d05f78e569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56e7e000e3de25a443830f71e390215f"><td class="memItemLeft" align="right" valign="top"><a id="a56e7e000e3de25a443830f71e390215f"></a>
static const FONT_STRETCH&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontStretch</b></td></tr>
<tr class="separator:a56e7e000e3de25a443830f71e390215f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2735e4da8212b02626b5a0abfd23fe0"><td class="memItemLeft" align="right" valign="top"><a id="ad2735e4da8212b02626b5a0abfd23fe0"></a>
static const float&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontSize</b></td></tr>
<tr class="separator:ad2735e4da8212b02626b5a0abfd23fe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48c5b1944c9ee4b7f7cd7ae3ea73788d"><td class="memItemLeft" align="right" valign="top"><a id="a48c5b1944c9ee4b7f7cd7ae3ea73788d"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontWeight</b></td></tr>
<tr class="separator:a48c5b1944c9ee4b7f7cd7ae3ea73788d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a749729f019c84d9c2901ef49981652a3"><td class="memItemLeft" align="right" valign="top"><a id="a749729f019c84d9c2901ef49981652a3"></a>
static Microsoft::WRL::ComPtr&lt; IDWriteFactory &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>s_dwFactory</b></td></tr>
<tr class="separator:a749729f019c84d9c2901ef49981652a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:aee0ad1dafe471596e6d25530d9fbaf0c"><td class="memItemLeft" align="right" valign="top"><a id="aee0ad1dafe471596e6d25530d9fbaf0c"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>Text</b></td></tr>
<tr class="separator:aee0ad1dafe471596e6d25530d9fbaf0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/ui/<a class="el" href="_font_8h_source.html">Font.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
